package com.tenghu.sbm.rest;

/**
 * 默认状态码枚举类
 * @author Arvin
 * @date 2017/12/9 14:17
 */
public enum  DefaultStatusEnum {

    SUC("S", "success"),
    ERROR("E","error"),
    SERVER_ERROR("50000", "server error, please ask admin for help");

    private String code;
    private String name;

    private DefaultStatusEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return this.code;
    }

    public String getName() {
        return this.name;
    }
}
